<template>
  <el-dialog title="上传资料" :visible.sync="dialogVisible" width="30%" :append-to-body="true">
    <el-form ref="editForm" :model="form"  label-width="120px">
      <el-row>
        <el-col :span="12">
          <upload :kid="form.kid"></upload>
        </el-col>
       </el-row>
    </el-form>
  </el-dialog>
</template>
<script>
import upload from "../upload/upload";
export default {
  data() {
    return {
      dialogVisible: false,
      form: {
        kid: null,
      },
    };
  },
  components: {
    upload
  },
  methods: {
    show(kid) {
      this.dialogVisible = true;
      if (this.$refs["editForm"]) {
        this.$refs["editForm"].resetFields();
      }
      this.form.kid = kid;
    }
  }
};
</script>